<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Office_model
 * Build by Phuc Nguyen
 * Contact : nguyenvanphuc0626@gmail.com
 */

class Office_model extends MY_Model{
	
	public function __construct(){
		parent::__construct();
		$this->table_name = 'book_atoffice';
	}
        
        public function insertOfficeInfo($params){
            $this->office_model->create($params);
            $result = $this->db->affected_rows();
            if(!$result){
                die("Insert db ".$this->table_name.' fail!');
            }
            return $result;
        }
}